#include <stdio.h>

#ifndef _XTYPE_H_
#define _XTYPE_H_



#ifdef __cplusplus
extern "C" {
#endif

typedef enum bool { true = 1, false = 0 } bool;

#define BOOL                            unsigned char
#define BYTE                            unsigned char
#define WORD                            unsigned short
#define UINT                            unsigned int
#define DWORD                           unsigned long
#define DDWORD                          unsigned long long

#define SET_BIT(B)                      (1UL << (B))

#ifndef ZRBY_MACSTR
#define ZRBY_MAC2STR(a) (a)[0], (a)[1], (a)[2], (a)[3], (a)[4], (a)[5]
#define ZRBY_MACSTR "%02x:%02x:%02x:%02x:%02x:%02x"
#endif


#ifdef __cplusplus
}
#endif

#endif

